home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / src / bin / warp / sgi / O.sgi / Makefile < prev    next >
Makefile  |  1993-02-10  |  760b  |  33 lines

  1. GEOM = ../../../../..
  2. include ${GEOM}/makefiles/Makedefs.global
  3. include ../Makedefs
  4. include ../../common/Makedefs.common
  5.  
  6. LIBS = -L${GEOM}/lib/${MACHTYPE} -lpointlist ${ALLOOGLLIBS} \
  7. -lformsx -lforms -lfm_s -lgl_s -lm -lmalloc
  8.  
  9. all:  ${TARGETS}
  10.  
  11. clang.c: ${COMMON_SRCS}
  12.     @${GEOM}/tools/lisp2c -cprefic "lisp_" -o ../../common/clang ${COMMON_SRCS}
  13.  
  14.  
  15.  
  16. ${COMMON_OBJS}: 
  17.     rm -f $@ ${@:o=c}
  18.     ln ../../common/${@:o=c} .
  19.     ${CC} ${CFLAGS} -c ${@:o=c}
  20.  
  21. warp:  ${COMMON_OBJS} ${OBJS}
  22.     /bin/rm -f ../warp || :
  23.     ${CC} ${CFLAGS} -o warp ${OBJS} ${COMMON_OBJS} ${LIBS}
  24.     ln warp ..
  25.  
  26. install:  install_module
  27.  
  28. install_module:  warp
  29.     ${INSTALLMODULE} warp ../.geomview-warp ${MODULEDIR}
  30.     cp ../../common/unitcube.off ${GEOM}/data/geom
  31.  
  32. include ${GEOM}/makefiles/Makerules.obj
  33.